package com.exam.demo.util.generic;

import com.exam.demo.common.Result;
import com.exam.demo.entity.Paper;
import com.exam.demo.entity.Question;
import com.exam.demo.service.QuestionService;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述
 * 个体
 * @author yxj30
 * @date 2022/04/25  18:03
 */
@Component
public class Individual {

    private ArrayList<Question>  questionList;


    //初始化个体
    public Individual(){}
    /**
     * 根据试题信息初始化个体
     * @param paper 试卷
     */
    public Individual(Paper paper){
        init(paper);
    }

    //初始化
    public void init(Paper paper){

    }
}
